package jmine.tec.batch;

import bancosys.tec.exception.AbstractException;
import bancosys.tec.exception.LocalizedMessageHolder;

/**
 * @author jrenaut
 */
public class PhaseException extends AbstractException {

    /**
     * @param messageHolder message holder
     */
    public PhaseException(LocalizedMessageHolder messageHolder) {
        super(messageHolder);
    }

    /**
     * @param messageHolder message holder
     * @param cause causa
     */
    public PhaseException(LocalizedMessageHolder messageHolder, Throwable cause) {
        super(messageHolder, cause);
    }

    /**
     * @param key key
     * @param arguments arguments
     */
    @Deprecated
    public PhaseException(String key, Object... arguments) {
        super(key, arguments);
    }

    /**
     * @param key key
     * @param cause cause
     * @param arguments arguments
     */
    @Deprecated
    public PhaseException(String key, Throwable cause, Object... arguments) {
        super(key, cause, arguments);
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public String getBundleBaseName() {
        return "jmine-tec-batch-messages";
    }

}
